Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Confluence] Add support for OAuth 2.0 #493

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

scottmx81
Copy link
Contributor

What's being changed:

This PR adds support the OAuth 2.0 authentication method to the Confluence connector. Currently the connector only supports the "Service Auth" authentication method when configured in Cohere Dashboard. With this PR, users will be able to connect their own accounts to Confluence with the OAuth flow from Cohere Dashboard.

How did you test this change (include any code snippets, API requests, screenshots, or gifs):

To test this change, I set the connector up in local environment, with only CONFLUENCE_SEARCH_LIMIT=10 in the .env file. I created a connector in Cohere Dashboard, and I configured it to access the connector in my local environment through a ngrok tunnel. I set the connector up with the OAuth authentication method option in Cohere Dashboard, and from the personal connectors page I connected my account to Confluence.

I enabled the connector in Coral, asked several questions, and observed that there were no connector errors being shown in the UI, and that it could answers questions with references in the sidebar that came from the connector.

I had temporary debug logging during development which gave me additional info letting me know that it was working correctly, but I have removed the debug logging prior to creating the PR.

The following screenshot was taking from Coral, with it using the test connector that I created using OAuth:

Screenshot 2024-09-24 at 11 20 54 AM

@scottmx81 scottmx81 requested a review from a team as a code owner September 24, 2024 17:34
Copy link
Collaborator

@walterbm-cohere walterbm-cohere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@walterbm-cohere walterbm-cohere merged commit 8e514cb into cohere-ai:main Oct 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants